import { Base } from '../../utils/base.js';
import { Config } from '../../utils/config.js';
class Photo extends Base {
  constructor() {
    super();
  }

  getMyPets(callback) {
    var allParams = {
      url: 'pets/user',
      type: 'get',
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(allParams);
  }

  createPhoto(param, callback) {
    var allParams = {
      url: 'pets_photo/create',
      type: 'post',
      data: param,
      sCallback: function (data) {
        callback && callback(data);
      }
    };
    this.request(allParams);
  }

}

export { Photo }